package com.etbsms.form;

import com.etbsms.domain.AgricultureAndFood;

public class QueryAAFForm extends PageForm<AgricultureAndFood> {	
	/*
	 * true  : 精確查詢
	 * false : 模糊查詢 
	 */	
	public QueryAAFForm(){
	}
	
	public QueryAAFForm(int rowPerPage){
		super(rowPerPage);
	}
	
	private int query_type;  
	private String title_o;
	private String author;	
	private String abstract_o;
	private String keyword_o;
	private int year_type;
	private int start_year;
	private int end_year;
	private String[] language;
	private String[] doc_type;
	private String[] clazz;
	private Integer[] literature;
	private String plants_code;	
	private String countries_name_ch;
	private String countries_code;
	private String plants_name_ch;
	private String languageStr;
	private String doc_typeStr;
	private String clazzStr;
	//private String literatureStr;
	private int flow;
	private String[] qr;
	private String qr_boolean;
	private String rec_no;
	private int created_users;
	

	public int getQuery_type() {
		return query_type;
	}
	public void setQuery_type(int query_type) {
		this.query_type = query_type;
	}
	public String getTitle_o() {
		return title_o;
	}
	public void setTitle_o(String title_o) {
		this.title_o = title_o;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public int getYear_type() {
		return year_type;
	}
	public void setYear_type(int year_type) {
		this.year_type = year_type;
	}
	public int getStart_year() {
		return start_year;
	}
	public void setStart_year(int start_year) {
		this.start_year = start_year;
	}
	public int getEnd_year() {
		return end_year;
	}
	public void setEnd_year(int end_year) {
		this.end_year = end_year;
	}
	public String[] getLanguage() {
		return language;
	}
	public void setLanguage(String[] language) {
		this.language = language;
	}
	public String[] getDoc_type() {
		return doc_type;
	}
	public void setDoc_type(String[] doc_type) {
		this.doc_type = doc_type;
	}
	public String getAbstract_o() {
		return abstract_o;
	}
	public void setAbstract_o(String abstract_o) {
		this.abstract_o = abstract_o;
	}
	public String getKeyword_o() {
		return keyword_o;
	}
	public void setKeyword_o(String keyword_o) {
		this.keyword_o = keyword_o;
	}
	public String[] getClazz() {
		return clazz;
	}
	public void setClazz(String[] clazz) {
		this.clazz = clazz;
	}

	public String getLanguageStr() {		
		if(this.language != null){		
			String lang = "";
			for(String _lang : this.language)
				lang += _lang + ",";
			this.languageStr = lang;
		}			
		return languageStr;
	}

	public void setLanguageStr(String languageStr) {
		this.languageStr = languageStr;
	}

	public String getDoc_typeStr() {
		if(this.doc_type != null){
			String doc = "";
			for(String _doc : this.doc_type)
				doc += _doc + ",";
			this.doc_typeStr = doc;		
		}
		return doc_typeStr;
	}

	public void setDoc_typeStr(String doc_typeStr) {
		this.doc_typeStr = doc_typeStr;
	}

	public String getClazzStr() {
		if(this.clazz != null){		
			String _clazzStr = "";
			for(String _clazz : this.clazz)
				_clazzStr += _clazz + ",";
			this.clazzStr = _clazzStr;
		}			
		return clazzStr;
	}

	public void setClazzStr(String clazzStr) {
		this.clazzStr = clazzStr;
	}
	

	public String getCountries_code() {
		return countries_code;
	}

	public void setCountries_code(String countries_code) {
		this.countries_code = countries_code;
	}
	
	public String getPlants_code() {
		return plants_code;
	}

	public void setPlants_code(String plants_code) {
		this.plants_code = plants_code;
	}

	public String getCountries_name_ch() {
		return countries_name_ch;
	}

	public void setCountries_name_ch(String countries_name_ch) {
		this.countries_name_ch = countries_name_ch;
	}

	public String getPlants_name_ch() {
		return plants_name_ch;
	}

	public void setPlants_name_ch(String plants_name_ch) {
		this.plants_name_ch = plants_name_ch;
	}

	public int getFlow() {
		return flow;
	}

	public void setFlow(int flow) {
		this.flow = flow;
	}

	public String[] getQr() {
		return qr;
	}

	public void setQr(String[] qr) {
		this.qr = qr;
	}

	public String getQr_boolean() {
		return qr_boolean;
	}

	public void setQr_boolean(String qr_boolean) {
		this.qr_boolean = qr_boolean;
	}

	public String getRec_no() {
		return rec_no;
	}

	public void setRec_no(String rec_no) {
		this.rec_no = rec_no;
	}

	public int getCreated_users() {
		return created_users;
	}

	public void setCreated_users(int created_users) {
		this.created_users = created_users;
	}

	public Integer[] getLiterature() {
		return literature;
	}

	public void setLiterature(Integer[] literature) {
		this.literature = literature;
	}

	/*
	public String getLiteratureStr() {
		
		if(this.literature != null){
			String _lit1 = "";
			for(String _lit2 : this.literature)
				_lit1 += _lit2 + ",";
			this.literatureStr = _lit1;		
		}
		return literatureStr;
	}

	public void setLiteratureStr(String literatureStr) {
		this.literatureStr = literatureStr;
	}
	*/
}
